package com.easyj.admin.db.mapper;

import java.util.List;

import com.easyj.admin.db.model.Permission;
import com.easyj.admin.db.model.RolePermission;


public interface RolePermissionMapper {
    int deleteByPrimaryKey(Long id);

    int insert(RolePermission record);

    RolePermission selectByPrimaryKey(Long id);

    //--------
    int deleteByRoleId(Long roleId);
    
    List<Permission>  selectByRoleId(Long roleId);
    
    List<Permission>  selectByRoleIds(List<Long> roleIds);
}